<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">

    <!-- 该设置用于适应多种设备（如pc、平板和手机等）设备 -->
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link rel="stylesheet" type="text/css" href="../../css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="../../css/font-awesome.min.css">
    <title>优印生产在线</title>


    <style type="text/css">
        html {
            height: 100%;

        }

        body {
            height: 100%;
            margin: 0px;
            padding: 0px;

            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;

        }

        .my-container {


            border: 1px solid #DDDDDD;
            width: 800px;
            height: 450px;

            margin-bottom: 6%;

            display: flex;
            flex-direction: column;
            align-items: center;

            box-shadow: 0px 0px 10px 1px #DDDDDD;

            border-radius: 5px;

            background-color: #FFFFFF;


        }

        .my-title {
            font-size: 75px;
            font-weight: bold;
            color: #223399;
            letter-spacing: 16px;
            margin: 50px 0px 20px;

            text-shadow: 10px 10px 9px #AABBFF;
        }

        .my-input {
            position: relative;
            height: 40px;
            width: 300px;
            margin: 5px 0px;
        }

        .my-input>label {
            box-sizing: border-box;

            position: absolute;

            width: 60px;
            height: 40px;
            line-height: 40px;

            letter-spacing: 2px;
            padding-left: 5px;

            color: #666666;
        }

        .my-input>input {

            box-sizing: border-box;

            padding-left: 60px;


            outline: none;
            border: 1px solid #DDDDDD;
            border-radius: 5px;
            height: 100%;
            width: 100%;

        }

        .my-button {
            position: relative;
            height: 40px;
            width: 300px;
            margin: 15px 0px;
        }

        .my-button>button {
            box-sizing: border-box;

           
            outline: none;
            border: 1px solid #DDDDDD;
            border-radius: 5px;
            height: 100%;
            width: 100%;
            background: #FEFEFE;

            color : #666666;

            letter-spacing: 15px;

            

        }

        .my-button>button:hover{
            background-color: #7088FF;
            color:#FFFFFF;
        }

        .my-button>button:active{
            background-color: #7088FF;
            color:#FFFFFF;
            box-shadow: 0 0 6px 1px #7088FF;
            outline: none;
            border:none;
            font-weight: bolder;
        }



    </style>


</head>

<body>

    <div class="my-container" id="app">

        <div class="my-title">
            优印生产在线
        </div>

        <div class="my-input">

            <label>账户：</label>
            <input type="text" v-model="user.u_id" />

        </div>

        <div class="my-input">

            <label>密码：</label>
            <input type="password" v-model="user.u_pwd" />

        </div>

        <div class="my-button">

            <button @click="login" >登录</button>

        </div>

    </div>

</body>




<script src="../../js/vue.min.js"></script>
<script src="../../js/axios.min.js"></script>

<script src="../../js/jquery-3.3.1.slim.min.js"></script>
<script src="../../js/popper.min.js"></script>
<script src="../../js/bootstrap.min.js"></script>
<script src="../../layer/layer.js"></script>

<script src="../../js/my.js"></script>


<script type="text/javascript">

    const login = function(){
        this.$myPost('/safty-login/user',this.user)
            .then(()=>{
                setTimeout(()=>{
                    location.href='../../safty/home/index.html';
                },1500);
                
                
            });
    };

    let vm = new Vue({
        el: '#app',
        data: {//数据
            user:{}

        },
        methods: {//方法

            login,//登录

        },
        mounted() {//页面渲染完之后立即执行的代码
           
            //this.$myGet('/safty-login/test');
            
        }

    });

</script>


</html>